var root = ui("$");
var nf = sm("do_Notification");
var deviceone = require("deviceone");
var communityUtil = require("helper/community");
var helperOpen = require("helper/open");
var qqHttp = require("helper/http");
var bizzType = require("helper/bizzType");
var pubUrl = require("url/pub");
// UI
var linearLayoutRow = ui("linearLayoutRow");
var layoutImg = ui("layoutImg");
var labelContent = ui("labelContent");
var imgView = ui("imgView");
// 设置数据绑定的映射关系
root.setMapping({ // 此处的Mapping只能设置在 RootView 上 ;
	"labelContent.tag" : "id",
	"linearLayoutRow.tag" : "creatorId",
	"labelContent.text" : "content",
	"labelTime.text" : "dayMinutesNewAt",
	"labelReplayCount.text" : "replyCount",
	"imgView.source" : "source",
	"imgView.visible" : "hasImg"
});

root.on("dataRefreshed", function(){
	
});

root.on("touch", function(){
	helperOpen.open("source://view/community/message/detail/msgBorderView.ui",{id:labelContent.tag});
});
